package com.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * <p>
 *
 * </p>
 *
 * @author marisheng
 * @since 2019-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Station implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "station_id", type = IdType.AUTO)
    @NotNull(message = "站点Id不得为空")
    private Integer stationId;

    /**
     * 站点名称
     */
    private String stationName;

    /**
     * 站点账号，负责人手机号
     */
    @Pattern(regexp = "^((13[0-9])|(14[5,7,9])|(15[0-3,5-9])|(166)|(17[3,5,6,7,8])|(18[0-9])|(19[8,9]))\\d{8}$",message = "手机格式有误")
    private String stationPhone;

    /**
     * 站点密码
     */
    private String stationPassword;

    /**
     * 站点所在区域
     */
    private Integer stationArea;

    /**
     * 站点所在省份
     */
    private Integer stationProvince;

    /**
     * 站点所在城市
     */
    private Integer stationCity;

    /**
     * 站点编号
     */
    private String stationBh;

    /**
     * 站点类型表外键
     */
    private Integer stationType;

    /**
     * 站点创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime stationCreateTime;

    /**
     * 最大终端数
     */
    private Integer stationMaximumNumberOfTerminals;

    /**
     * 当前终端数
     */
    private Integer staionCurrentNumberOTerminals;
    /**
     * 管理员表外键
     */
    private Integer stationAdminId;

    /**
     * 点钟宝ip
     */
    private Integer stationDzbIp;

    /**
     * 系统升级表外键
     */
    private Integer stationSystemUpdate;

    /**
     * oss开关
     */
    private String stationOss;

    /**
     * 站点模式：租赁或买断
     */
    private String stationModel;

    /**
     * 本地服务器地址
     */
    private String stationLocalServerIp;

    /**
     * 授权
     */
    private String copyRight;

    /**
     * 地址表外键
     */
    private Integer addressId;

    /**
     * 钟点房使用总量
     */
    private Integer stationHourRoom;

    /**
     *包天房间使用量
     */
    private Integer stationAllLivingRoom;

    /**
     * 密钥余额
     */
    private Integer stationKeyYue;



    private Integer stationRegionId;
    /**
     * 省的中文
     */
    private String stationShen;
    /**
     * 区域的中文
     */
    private String stationQuyu;

    /**
     * VPN地址
     */
    private String stationVpn;

    //站点锁定时提示语
    private  String stationLocktip;

}
